package com.wonders.hs.pd.mm.web.config;

import com.wonders.hs.pd.mm.web.utils.PropertiesUtils;

/**
 * @author banglong
 * @date 2016/8/18.
 */
public class SystemConfig {

  private static final String RESOURCE_NAME = "config.properties";

  // 后台地址
  public static final String API_ADDRESS = PropertiesUtils.getProperty(RESOURCE_NAME, "api.address");

  // SSO地址
  public static final String SSO_LOGIN_URL = PropertiesUtils.getProperty(RESOURCE_NAME, "sso.login.url");

  // 缓存文件的时间
  @Deprecated
  public static final String CATCH_REFRESH_TIME = PropertiesUtils.getProperty(RESOURCE_NAME, "cache.refresh.time");

  // session 过期时间
  public static final String SESSION_TIMEOUT = PropertiesUtils.getProperty(RESOURCE_NAME, "session.timeout");

  // socket io
  public static final String SOCKETIO_HOST = PropertiesUtils.getProperty(RESOURCE_NAME, "wss.server.host");
  public static final String SOCKETIO_PORT = PropertiesUtils.getProperty(RESOURCE_NAME, "wss.server.port");

  // db
  public static final String DB_URL = PropertiesUtils.getProperty(RESOURCE_NAME, "db.url");
  public static final String DB_USERNAME = PropertiesUtils.getProperty(RESOURCE_NAME, "db.username");
  public static final String DB_PASSWORD = PropertiesUtils.getProperty(RESOURCE_NAME, "db.password");
}
